package com.upc.service;

import com.upc.dao.UserDao;
import com.upc.pojo.User;
import com.upc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService{


    @Autowired
    private UserDao userDao;

    @Override
    public User login(User user){
        return  userDao.login(user);
    }

}
